package com.ytt.core.service.entity.schoolClass;

import com.ytt.core.service.entity.AbstractBaseEntity;
import com.ytt.core.service.entity.college.College;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * 学院班级
 * 相当于组织
 * @author chenwen
 * @date 2019/9/12 15:02
 */
@Entity
@Setter
@Getter
@Table(name = "sys_school_class")
public class SchoolClass  extends AbstractBaseEntity {
    /**
     * 班级名称
     */
    @Column(name = "name")
    private String name;


    /**
     * 所属的学院
     */
    @ManyToOne(targetEntity = College.class)
    @JoinColumn(name = "college_id")
    private College college;
}
